<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>智能知识图谱构建与QA评测系统</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            color: #333;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        .header {
            text-align: center;
            margin-bottom: 60px;
        }

        .header h1 {
            font-size: 3rem;
            color: white;
            margin-bottom: 16px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }

        .header p {
            font-size: 1.2rem;
            color: rgba(255,255,255,0.9);
            margin-bottom: 30px;
        }

        .version-badge {
            display: inline-block;
            background: rgba(255,255,255,0.2);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.9rem;
            backdrop-filter: blur(10px);
        }

        .nav-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }

        .nav-card {
            background: white;
            border-radius: 16px;
            padding: 32px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
        }

        .nav-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 16px 48px rgba(0,0,0,0.15);
        }

        .nav-card-icon {
            width: 64px;
            height: 64px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            margin-bottom: 20px;
        }

        .icon-single { background: linear-gradient(135deg, #667eea, #764ba2); }
        .icon-batch { background: linear-gradient(135deg, #f093fb, #f5576c); }
        .icon-eval { background: linear-gradient(135deg, #4facfe, #00f2fe); }

        .nav-card h3 {
            font-size: 1.4rem;
            margin-bottom: 12px;
            color: #2d3748;
        }

        .nav-card p {
            color: #718096;
            line-height: 1.6;
            margin-bottom: 16px;
        }

        .nav-card-features {
            list-style: none;
        }

        .nav-card-features li {
            font-size: 0.9rem;
            color: #4a5568;
            margin-bottom: 8px;
            padding-left: 20px;
            position: relative;
        }

        .nav-card-features li:before {
            content: "✨";
            position: absolute;
            left: 0;
        }

        .footer {
            text-align: center;
            margin-top: 60px;
            color: rgba(255,255,255,0.8);
        }

        .footer a {
            color: rgba(255,255,255,0.9);
            text-decoration: none;
        }

        .footer a:hover {
            text-decoration: underline;
        }

        @media (max-width: 768px) {
            .header h1 {
                font-size: 2rem;
            }
            
            .nav-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .nav-card {
                padding: 24px;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>智能知识图谱构建与QA评测系统</h1>
            <p>基于GraphRAG的智能知识图谱构建，支持实时可视化、智能实体拓展和高质量问答对生成评测</p>
            <div class="version-badge">v2.0 - 评测系统版</div>
        </div>

        <div class="nav-grid">
            <a href="/single-qa" class="nav-card">
                <div class="nav-card-icon icon-single">🎯</div>
                <h3>单条QA测试</h3>
                <p>单个实体的知识图谱构建和QA生成，实时可视化图谱构建过程</p>
                <ul class="nav-card-features">
                    <li>实时图谱可视化</li>
                    <li>智能实体拓展</li>
                    <li>高质量QA生成</li>
                    <li>星座图高亮</li>
                </ul>
            </a>

            <a href="/batch-generation" class="nav-card">
                <div class="nav-card-icon icon-batch">⚡</div>
                <h3>批量生成</h3>
                <p>批量生成多个QA对，支持不同种子数据源和自定义参数配置</p>
                <ul class="nav-card-features">
                    <li>批量实体处理</li>
                    <li>WikiData种子加载</li>
                    <li>可配置生成参数</li>
                    <li>进度实时监控</li>
                </ul>
            </a>

            <a href="/data-evaluation" class="nav-card">
                <div class="nav-card-icon icon-eval">📊</div>
                <h3>数据评测</h3>
                <p>对生成的QA数据进行质量评测，使用R1模型进行高质量评估</p>
                <ul class="nav-card-features">
                    <li>R1模型评测</li>
                    <li>标准数据对比</li>
                    <li>通过率统计</li>
                    <li>可视化分析</li>
                </ul>
            </a>

            <a href="/comparison-evaluation" class="nav-card">
                <div class="nav-card-icon" style="background: linear-gradient(135deg, #8b5cf6, #a855f7);">🔄</div>
                <h3>对比评测</h3>
                <p>选择两个数据集进行智能对比评测，通过LLM评判员评估QA质量差异</p>
                <ul class="nav-card-features">
                    <li>双数据集对比</li>
                    <li>智能评价者</li>
                    <li>详细对比理由</li>
                    <li>历史记录查看</li>
                </ul>
            </a>

            <a href="/runs-qa-generation" class="nav-card">
                <div class="nav-card-icon" style="background: linear-gradient(135deg, #f59e0b, #d97706);">📁</div>
                <h3>Runs记录QA生成</h3>
                <p>读取历史运行记录中的图数据，直接采样子图生成高质量问答对</p>
                <ul class="nav-card-features">
                    <li>历史记录读取</li>
                    <li>图数据提取</li>
                    <li>智能子图采样</li>
                    <li>批量QA生成</li>
                </ul>
            </a>

            <a href="/data-management" class="nav-card">
                <div class="nav-card-icon" style="background: linear-gradient(135deg, #10b981, #059669);">🗂️</div>
                <h3>数据管理</h3>
                <p>管理generated_datasets中的jsonl文件，支持推理路径编辑和语言检测</p>
                <ul class="nav-card-features">
                    <li>数据文件读取</li>
                    <li>推理路径编辑</li>
                    <li>语言自动检测</li>
                    <li>数据筛选管理</li>
                </ul>
            </a>

            <a href="/final-datasets" class="nav-card">
                <div class="nav-card-icon" style="background: linear-gradient(135deg, #6366f1, #8b5cf6);">🗄️</div>
                <h3>最终数据</h3>
                <p>管理最终数据集，支持多种格式的数据查看和管理功能</p>
                <ul class="nav-card-features">
                    <li>数据集浏览</li>
                    <li>表格卡片视图</li>
                    <li>统计信息展示</li>
                    <li>数据质量分析</li>
                </ul>
            </a>

            <a href="/domain-tags" class="nav-card">
                <div class="nav-card-icon" style="background: linear-gradient(135deg, #ec4899, #f59e0b);">🏷️</div>
                <h3>领域标签</h3>
                <p>对数据进行领域标签管理，支持批量处理和自动标注功能</p>
                <ul class="nav-card-features">
                    <li>批量文件夹处理</li>
                    <li>领域自动识别</li>
                    <li>标签批量添加</li>
                    <li>标签统计分析</li>
                </ul>
            </a>
        </div>

        <div class="footer">
            <p>
                Copyright © 2025 by AQ-MedAI All rights reserved
            </p>
        </div>
    </div>

    <script>
        // 添加点击音效
        document.querySelectorAll('.nav-card').forEach(card => {
            card.addEventListener('mouseenter', () => {
                card.style.transform = 'translateY(-5px) scale(1.01)';
            });
            
            card.addEventListener('mouseleave', () => {
                card.style.transform = 'translateY(0) scale(1)';
            });
        });
    </script>
</body>
</html> 